﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ConsoleApplication1
{
    public partial class Form1 : Form
    {
        public Form1()//默认构造方法
        {
            InitializeComponent();
        }

        public Form1(string msg)//重构构造方法（以一个string为参数）
        {
            InitializeComponent();
            qrCodeGraphicControl3.Text = msg;//将msg传入qrCodeGraphicControl控件
        }
        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)//bottom控件相应行为
        {
            qrCodeGraphicControl3.Text = textBox1.Text;//读取文本框信息
            qrCodeGraphicControl3.Visible = true;//改变qrcode控件透明度
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }
    }
}
